package com.yang.trainingCamp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.trainingCamp.pojo.Campers;
import com.yang.trainingCamp.pojo.TrainingCampOrder;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CampersMapper extends BaseMapper<Campers> {

    @Select("select c.* from campers c inner join entry_record er on c.id = er.camper_id")
    List<Campers> queryEntryCamper();
}
